package com.ruoyi.system.domain;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备图形参数配置对象 mr_device_graphical_configuration
 *
 * @author lsw
 * @date 2024-01-24
 */
@Setter
@Getter
public class MrDeviceGraphicalConfiguration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 曲线的颜色 */
    @Excel(name = "曲线的颜色")
    private String color;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 量程 */
    @Excel(name = "量程")
    private String ranges;

    /** 更新的时间（秒） */
    @Excel(name = "更新的时间", readConverterExp = "秒=")
    private String time;

    /** 关联设备id */
    @Excel(name = "关联设备id")
    private String deviceIds;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("color", getColor())
                .append("unit", getUnit())
                .append("ranges", getRanges())
                .append("time", getTime())
                .append("deviceIds", getDeviceIds())
                .append("type", getType())
                .append("name", getName())
                .toString();
    }
}
